home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / sunprom / sun4.md / devFsOpTable.c < prev    next >
C/C++ Source or Header  |  1990-09-17  |  3KB  |  79 lines

  1. /* 
  2.  * devFsOpTable.c --
  3.  *
  4.  *    The operation tables for the file system devices.  
  5.  *
  6.  * Copyright 1987, 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. #ifdef notdef
  17. static char rcsid[] = "$Header: /sprite/src/boot/sunprom/sun4.md/RCS/devFsOpTable.c,v 1.1 90/09/17 11:24:28 rab Exp Locker: rab $ SPRITE (Berkeley)";
  18. #endif not lint
  19.  
  20.  
  21. #include "sprite.h"
  22. #include "dev.h"
  23. #include "devFsOpTable.h"
  24.  
  25. extern ReturnStatus SunPromDevOpen _ARGS_ ((Fs_Device *devicePtr, int flags,
  26.                             Fs_NotifyToken notifyToken, int *flagsPtr));
  27. extern ReturnStatus SunPromDevRead _ARGS_ ((Fs_Device *devicePtr,
  28.                                 Fs_IOParam *readPtr, Fs_IOReply *replyPtr));
  29. #if 0
  30. static ReturnStatus NullWriteProc _ARGS_ ((Fs_Device *devicePtr,
  31.                                 Fs_IOParam *writePtr, Fs_IOReply *replyPtr));
  32. static ReturnStatus NullIoctlProc _ARGS_ ((Fs_Device *devicePtr,
  33.                                 Fs_IOCParam *ioctlPtr, Fs_IOReply *replyPtr));
  34. static ReturnStatus NullCloseProc _ARGS_ ((Fs_Device *devicePtr, int flags,
  35.                             int numUsers, int numWriters));
  36. static ReturnStatus NullSelectProc _ARGS_ ((Fs_Device *devicePtr, int *readPtr,
  37.                                 int *writePtr, int *exceptPtr));
  38. static DevBlockDeviceHandle NullBlockDevAttachProc _ARGS_ ((Fs_Device *ptr)));
  39. static ReturnStatus NullReopenProc _ARGS_ ((Fs_Device *devicePtr, int numUsers,
  40.                                 int numWriters,
  41.                     Fs_NotifyToken notifyToken,
  42.                     int *flagsPtr));
  43. static ReturnStatus NullMmapProc _ARGS_ ((Fs_Device *devicePtr,
  44.                                 Address startAddr, int length,
  45.                 int offset, Address *newAddrPtr));
  46. #endif
  47.  
  48.  
  49. /*
  50.  * Device type specific routine table:
  51.  *    This is for the file-like operations as they apply to devices.
  52.  *    DeviceOpen
  53.  *    DeviceRead
  54.  *    DeviceWrite
  55.  *    DeviceIOControl
  56.  *    DeviceClose
  57.  *    DeviceSelect
  58.  *    BlockDeviceAttach
  59.  */
  60.  
  61.  
  62. DevFsTypeOps devFsOpTable[] = {
  63.     /*
  64.      * Simple interface to the routines in the Sun PROM.
  65.      */
  66.     {0, SunPromDevOpen, SunPromDevRead, 0, 0, 0, 0, 0, 0, 0 }
  67. };
  68.  
  69. int devNumDevices = sizeof(devFsOpTable) / sizeof(DevFsTypeOps);
  70.  
  71. #if 0
  72. static ReturnStatus
  73. NullProc()
  74. {
  75.     return(SUCCESS);
  76. }
  77. #endif
  78.  
  79.